package com.atguigu.spzx.user.service.impl;

import com.atguigu.spzx.user.mapper.UserBrowseHistoryMapper;
import com.atguigu.spzx.user.service.UserBrowseHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ClassName: UserBrowseHistoryServiceImpl
 * @Package: com.atguigu.spzx.user.service.impl
 * @Description
 * @Author 孤妤
 * @Date: 2023/12/22 19:37
 */
@Service
@Transactional
public class UserBrowseHistoryServiceImpl implements UserBrowseHistoryService {
    @Autowired
    private UserBrowseHistoryMapper userBrowseHistoryMapper;
    @Override
    public void addUserBrowseHistoryPage(Integer userId, Integer skuId) {
        userBrowseHistoryMapper.insertUserBrowseHistoryPage(userId,skuId);
    }
}
